package com.fdl.dao.security;

import com.fdl.dao.base.Dao;
import com.fdl.dao.base.impl.BaseHibernateDao;
import com.fdl.dao.model.security.Permission;

/**
 * 
 * @description 
 * @project: hb-intra
 * @Date:2010-8-4
 * @version  1.0
 * @Company: 33e9
 * @author zhangYong.huang
 */
public class PermissionDao extends BaseHibernateDao implements Dao {
	private RoleDao roleDao;

	public PermissionDao() {
		super(Permission.class);
	}

	/**
	 * 通过ID获取权限
	 * @param id
	 * @return
	 */
	public Permission get(Integer id) {
		return (Permission) super.load(id);
	}

	public void setRoleDao(RoleDao roleDao) {
		this.roleDao = roleDao;
	}
}
